package com.atguigu.exer5_2;

public class TestMyDate {
    public static void main(String[] args) {
        //（2）在测试类TestMyDate类中，创建两个日期对象，一个日期赋值为今年六一儿童节日期，
        // 一个日期赋值为今年程序员节日期，并显示
        MyDate childrenDay = new MyDate();
        childrenDay.setYear(2025);
        childrenDay.setMonth(6);
        childrenDay.setDay(1);
       // System.out.println("今年六一儿童节:" + childrenDay.getYear() +"年" + childrenDay.getMonth()+"月" + childrenDay.getDay()+"日");
        System.out.println("今年六一儿童节:" + childrenDay.getInfo());

        MyDate programDay = new MyDate();
        programDay.setYear(2025);
        programDay.setMonth(10);
        programDay.setDay(24);
//        System.out.println("今年程序员节:" + programDay.getYear() +"年" + programDay.getMonth()+"月" + programDay.getDay()+"日");
        System.out.println("今年程序员节:" + programDay.getInfo());
    }
}
